package com.jojo.bubble.service;

import com.jojo.bubble.entity.Agent;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 代理商表(Agent)表服务接口
 *
 * @author jojo
 * @since 2023-08-10 03:50:45
 */
public interface AgentService {
    int count(Agent record);

    int insert(Agent record);

    int update(Agent record);

    Agent getInfo(int id);

    List<Agent> getList(Agent record);

    List<Agent> queryAllByLimit(Agent agent, @Param("pageable") Pageable pageable);

    int delete(int id);

    Agent queryByPhone(String phone);

    Agent queryByUser(Integer agentId);

    List<Agent> queryOverById(Integer id);
}
